package com.itheima.mapper;

import java.util.List;

import com.github.pagehelper.Page;
import com.itheima.entity.ProjectFundingApplication;
import com.itheima.pojo.po.IndexVisualizationPo;
import org.apache.ibatis.annotations.Mapper;

/**
 * 项目资金申请Mapper接口
 *
 * @author guanhuaer
 * @date 2025-03-20
 */
@Mapper
public interface ProjectFundingApplicationMapper {

    /**
     * 查询项目资金申请
     *
     * @param id 项目资金申请主键
     * @return 项目资金申请
     */
    public ProjectFundingApplication selectProjectFundingApplicationById(Long id);

    /**
     * 查询项目资金申请列表
     *
     * @param projectFundingApplication 项目资金申请
     * @return 项目资金申请集合
     */
    public Page<ProjectFundingApplication> selectProjectFundingApplicationList(ProjectFundingApplication projectFundingApplication);

    /**
     * 新增项目资金申请
     *
     * @param projectFundingApplication 项目资金申请
     * @return 结果
     */
    public int insertProjectFundingApplication(ProjectFundingApplication projectFundingApplication);

    /**
     * 修改项目资金申请
     *
     * @param projectFundingApplication 项目资金申请
     * @return 结果
     */
    public int updateProjectFundingApplication(ProjectFundingApplication projectFundingApplication);

    /**
     * 删除项目资金申请
     *
     * @param id 项目资金申请主键
     * @return 结果
     */
    public int deleteProjectFundingApplicationById(Long id);

    /**
     * 批量删除项目资金申请
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteProjectFundingApplicationByIds(Long[] ids);

    ProjectFundingApplication selectProjectFundingApplicationByProjectId(Long id);

    /**
     * 查询首页资金申请可视化数据
     * @return
     */
    IndexVisualizationPo selectBaseInfo(Integer userId);
    IndexVisualizationPo selectBaseTeacherInfo(Integer userId);
}
